import React, { ChangeEvent, FC, useState } from "react"
import { text } from "stream/consumers"

const InputForm: FC = () => {
  const [text, setText] = useState("")
  function handleChange(event: ChangeEvent<HTMLInputElement>) {
    setText(event.target)
  }

  return (
    <form>
      <label htmlFor="new-todo">What needs to be done?</label>
      <br />
      <input id="new-todo" />
      <button type="submit"></button>
    </form>
  )
}

export default InputForm
